package com.example.mylibrary;

import android.app.ProgressDialog;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public abstract class BaseActivity extends AppCompatActivity implements BaseView {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initDatabinding();
        initViewModel();
    }

    protected void initToolBar(){

    }


    protected abstract void initViewModel();

    protected abstract int setLayoutId();

    protected int getLayoutId() {
        return setLayoutId();
    }

    protected abstract void initDatabinding();

}
